package com.tianhui.consignortwofei.mvp.contract;

import com.fgs.common.CommonPresenter;
import com.fgs.common.CommonView;
import com.tianhui.consignortwofei.mvp.model.enty.DictionaryInfo;
import com.tianhui.consignortwofei.mvp.model.enty.DispatcherInfo;
import com.tianhui.consignortwofei.mvp.model.enty.GoodsInfo;
import com.tianhui.consignortwofei.mvp.model.enty.VehicleLimitInfo;

import java.util.List;
import java.util.Map;

/**
 * @author fgs
 * @date 2020/3/29
 * @description
 **/
public interface GoodsContract {
    interface View extends CommonView {
        void publicGoodsSuccess();

        void showGoodsTypeList(List<DictionaryInfo> dictionaryInfoList);

        void showCargoRightsList(List<DictionaryInfo> dictionaryInfoList);

        void showVehicleLimitList(List<VehicleLimitInfo> vehicleLimitInfoList);

        void showDispatcherList(List<DispatcherInfo> list);
    }

    abstract class Presenter extends CommonPresenter<View> {
        public abstract void requestGoodsList(Map<String, String> map, boolean isDialog);

        public abstract void requestDispatcherList(Map<String, String> map, boolean isDialog);

        public abstract void requestPublishLiteSource(GoodsInfo info);

        public abstract void requestPublishLiteSourceBuKai(GoodsInfo info);

        public abstract void requestPlacePathSave(GoodsInfo info);

        public abstract void requestDeliverPathSave(GoodsInfo info);

        public abstract void requestDestinationPathSave(GoodsInfo info);

        public abstract void requestGoodsType();

        public abstract void requestCargoRights();

        public abstract void requestVehicleLimit();

    }
}
